<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            margin: 100px;
            clip-path: polygon(50% 0, 100% 50%,
             50% 100%,0 50%);
            transition: 1s clip-path;
        }

        img:hover {
            clip-path: polygon(0 0, 100% 0, 
            100% 100%, 0 100%);
        }
    </style>
</head>

<body>

    <img src="../images/banner01.png" alt="">

</body>

</html>